#
# Copyright (c) 2017-2023 zhllxt
# 
# author   : zhllxt
# email    : 37792738@qq.com
# 
# Distributed under the Boost Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#

GroupSources (include/asio2 "/")
GroupSources (3rd/asio "/")

aux_source_directory(. SRC_FILES)

source_group("" FILES ${SRC_FILES})

set(TARGET_NAME http_client)

add_executable (
    ${TARGET_NAME}
    ${ASIO2_FILES}
    ${TARGET_NAME}.cpp
)

#SET_TARGET_PROPERTIES(${TARGET_NAME} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${ASIO2_EXES_DIR})

set_property(TARGET ${TARGET_NAME} PROPERTY FOLDER "example")

set_target_properties(${TARGET_NAME} PROPERTIES VS_DEBUGGER_WORKING_DIRECTORY ${ASIO2_EXES_DIR})

target_link_libraries(${TARGET_NAME} ${CMAKE_THREAD_LIBS_INIT})
target_link_libraries(${TARGET_NAME} ${GENERAL_LIBS})



#####################################################################################################


#GroupSources (include/asio2 "/")
#GroupSources (3rd/asio "/")
#
#aux_source_directory(. SRC_FILES)
#
#file (GLOB_RECURSE CEREAL_FILES ${ASIO2_ROOT_DIR}/cereal/*.*)
#file (GLOB_RECURSE FMT_FILES ${ASIO2_ROOT_DIR}/fmt/*.*)
#file (GLOB_RECURSE JSON_FILES ${ASIO2_ROOT_DIR}/nlohmann/*.*)
#file (GLOB_RECURSE PFR_FILES ${ASIO2_ROOT_DIR}/pfr/*.*)
#file (GLOB_RECURSE SPDLOG_FILES ${ASIO2_ROOT_DIR}/spdlog/*.*)
#
#
#GroupSources (3rd/cereal "/")
#GroupSources (3rd/fmt "/")
#GroupSources (3rd/nlohmann "/")
#GroupSources (3rd/spdlog "/")
#
#
#source_group("" FILES ${SRC_FILES})
#
#set(TARGET_NAME http_client)
#
#add_executable (
#    ${TARGET_NAME}
#    ${ASIO2_FILES} ${FMT_FILES} ${JSON_FILES} ${SPDLOG_FILES} ${CEREAL_FILES} ${ASIO_FILES} ${SRC_FILES}
#    ${TARGET_NAME}.cpp
#)
#
##SET_TARGET_PROPERTIES(${TARGET_NAME} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${ASIO2_EXES_DIR})
#
#set_target_properties(${TARGET_NAME} PROPERTIES VS_DEBUGGER_WORKING_DIRECTORY ${ASIO2_EXES_DIR})
#
#target_link_libraries(${TARGET_NAME} ${CMAKE_THREAD_LIBS_INIT})
#target_link_libraries(${TARGET_NAME} ${GENERAL_LIBS})
#